const mongoose = require("mongoose")

mongoose.connect("mongodb://localhost/petHome", {
    useNewUrlParser: true
}, function (err) {
    console.log("数据库连接成功");
})

module.exports = {
    Users: require("./Users"),//用户
    Comment:require("./Comment"),//评论
    GoodsOrder:require("./GoodsOrder"),//商品订单
    ServiceOrder:require("./ServiceOrder"),//服务订单
    Goods:require("./Goods"),//商品种类
    Service:require("./Service"),//服务种类
    Host:require("./Host"),//宠主
    Goods:require("./Goods"),//商品种类
    Service:require("./Service"),//服务种类
    Shop:require("./Shop"),//门店
    ShopSell:require("./ShopSell"),//门店销售情况
   
    Supplier:require("./Supplier"),//供应商
    SupplierGoods:require("./SupplierGoods"),//供应商
    ObjectId: mongoose.Types.ObjectId
}